﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dto.Core
{
    /// <summary>
    /// 分页 服务入参(Service Input Param)
    /// </summary>
    public class PagerSipDto:BaseDto
    {
        #region 分页大小

        /// <summary>
        /// 分页大小
        /// </summary>
        private int _pageSize = 30;

        /// <summary>
        /// 分页大小
        /// </summary>
        [JsonProperty("page_size")]
        public int PageSize
        {
            get { return _pageSize; }
            set
            {
                SetProperty(ref _pageSize, value);
            }
        }

        #endregion 分页大小 


        #region 页码(需要查询的页码)

        /// <summary>
        /// 页码(需要查询的页码)
        /// </summary>
        private int _pageNumber;

        /// <summary>
        /// 页码(需要查询的页码)
        /// </summary>
        [JsonProperty("page_number")]
        public int PageNumber
        {
            get { return _pageNumber; }
            set
            {
                SetProperty(ref _pageNumber, value);
            }
        }

        #endregion 页码(需要查询的页码) 
    }
}
